// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

h2.view-title {
    margin: 0;
    line-height: 1.75;
    display: inline-block;
    color: #717171;
    //font-weight: 600;
    //text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
}

.Resizer {
    background: #000;
    opacity: 0.2;
    z-index: 1;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-background-clip: padding;
    -webkit-background-clip: padding;
    background-clip: padding-box;
}

.Resizer:hover {
    -webkit-transition: all 2s ease;
    transition: all 2s ease;
}

.Resizer.horizontal {
    height: 11px;
    margin: -5px 0;
    border-top: 5px solid rgba(255, 255, 255, 0);
    border-bottom: 5px solid rgba(255, 255, 255, 0);
    cursor: row-resize;
    width: 100%;
}

.Resizer.horizontal:hover {
    border-top: 5px solid rgba(0, 0, 0, 0.5);
    border-bottom: 5px solid rgba(0, 0, 0, 0.5);
}

.Resizer.vertical {
    width: 11px;
    margin: 0 -5px;
    border-left: 5px solid rgba(255, 255, 255, 0);
    border-right: 5px solid rgba(255, 255, 255, 0);
    cursor: col-resize;
}

.Resizer.vertical:hover {
    border-left: 5px solid rgba(0, 0, 0, 0.5);
    border-right: 5px solid rgba(0, 0, 0, 0.5);
}

.Resizer.disabled {
    cursor: not-allowed;
}

.Resizer.disabled:hover {
    border-color: transparent;
}

.GroupHeader {
    position: sticky;
    padding: 4px 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
}

.GroupItems {
    padding: 0;
}

// Custom scrollbar styling with hover effects
* {
    // Webkit browsers (Chrome, Safari, Edge)
    &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    &::-webkit-scrollbar-corner {
        background: #f1f1f1;
    }

    // Firefox
    scrollbar-width: auto;
    scrollbar-color: lightgray transparent;

    // Firefox hover effect (limited support)
    &:hover {
        scrollbar-color: #c6c6c6 transparent;
    }
}

// Specific styling for main scrollable containers
.encoding-shelf,
.vega-container,
.data-fields-group {
    &::-webkit-scrollbar-thumb {
        background: #d1d1d1;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #b8b8b8;
    }
}

// Pencil writing animation
@keyframes writing-pencil {
    0%, 100% { 
        transform: rotate(-12deg) translateY(0px); 
    }
    25% { 
        transform: rotate(-8deg) translateY(-1px); 
    }
    50% { 
        transform: rotate(-12deg) translateY(0px); 
    }
    75% { 
        transform: rotate(-15deg) translateY(1px); 
    }
}

.pencil {
    display: inline-block;
    transform-origin: bottom right;
    animation: writing-pencil 0.8s ease-in-out infinite;
}
